package com.easyto.order.apis;

import com.easyto.order.fallbackfactory.MyFallbackFactory;
import com.easyto.order.response.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "easyto-pay", path = "/easyto/pay/feign",fallbackFactory = MyFallbackFactory.class)
public interface PayFeignApi {

    @GetMapping("/getApi")
    String getPayApi();

    @GetMapping("/getUser/{uid}")
    UserDTO queryUserById(@PathVariable("uid") String uId);

}
